<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>刘一手总店管理系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="Login">
  	<link href="A_Style/Style.css" rel="stylesheet" type="text/css" />
  </head>
  
 <script language="JavaScript">

	function mycheck(){
	   if(isNull(form1.Username.value)){  
	   alert("请输入账号！"); 
	   return false;
	   }
	   if(isNull(form1.Password.value)){
	   alert("请输入密码！");
	   return false;
	   }
	}
	
	function isNull(str){
		if ( str == "" ) return true;
		var regu = "^[ ]+$";
		var re = new RegExp(regu);
		return re.test(str);
	}
</script>

  <body>
<center>
  <br><br><br><br><br>
  <table width="684" border="0" cellspacing="0" cellpadding="0">
    <tr>
				<td height="292" align="center" valign="top"
					background="images/LoginBg.jpg">
					<table width="350" height="201" border="0" cellpadding="0"
						cellspacing="0">
						<tr>
							<td height="72" align="center"><h3>刘一手总店管理系统</h3></td>
						</tr>
						<tr>
							<td align="center" valign="top">
								<form name="form1" action="LoginSer" method="post"
									onSubmit="return mycheck()">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td height="30" colspan="2" align="center" class="STYLE2"><span
												style="color:red;"> <%if(request.getAttribute("Msg")!=null){%>
													<%=request.getAttribute("Msg")%> <%}%>
											</span></td>
										</tr>
										<tr>
											<td width="37%" height="30" align="right" class="STYLE2">账号：</td>
											<td width="300" align="left"><input type="text"
												name="Username" id="Username" class="text1" /></td>
										</tr>
										<tr>
											<td height="30" align="right" class="STYLE2">密码：</td>
											<td align="left"><input type="password" name="Password"
												id="Password" class="text1" /></td>
										</tr>
										<tr>
											<td height="30" colspan="2" align="center"><label>
													<input type="submit" name="button" id="button" value="登录">
											</label></td>
										</tr>
									</table>
								</form> <br> <br>
						<tr>
							<td colspan="2" align="center"><font color="red">管理系统</font>
							</td>
						</tr>
						</td>
						</tr>
					</table>
				</td>
			</tr>
  </table>


</center>

    
	  <div align="center">
		 <p>© 长江师范学院||软件服务与外包1班||   徐瑜小组</p>
	  </div>
    
  </body>
</html>
